from django.conf.urls import patterns, include, url
import auth.urls
import maps.urls

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
# from django.views.generic.simple import direct_to_template
admin.autodiscover()

urlpatterns = patterns('',
    # url(r'^$',  direct_to_template,  {'template': 'base.html'},  name="index"),
    # url(r'^register/', 'auth.views.register'),
    # url(r'^login/', 'auth.views.login'),
    url(r'^auth/',  include(auth.urls)),
    url(r'^map/', include(maps.urls)),
    url(r'^$',  'mapaimprez.views.index'),
    
    #url(r'^admin/', include(admin.site.urls)),
#)
    # Examples:
    # url(r'^$', 'mapaimprez.views.home', name='home'),
    # url(r'^mapaimprez/', include('mapaimprez.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
